package com.cloud.config;


import com.cloud.handler.LogHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Import({LogHandler.class})
//@EnableBinding(value={LogSend.class})
public class LogConfig implements WebMvcConfigurer {

    @Autowired
    private LogHandler logHandler;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(logHandler);
    }
}